package com.orange.lswidget.widgets.musicplayer.factory;

import android.content.Context;
import android.os.IBinder;

import com.android.music.IMediaPlaybackService;
import com.orange.lswidget.widgets.musicplayer.entry.MusicDefaultPlayer;
import com.orange.lswidget.widgets.musicplayer.entry.MusicPlayer;
import com.orange.lswidget.widgets.musicplayer.service.DefaultMPService;
import com.orange.lswidget.widgets.musicplayer.service.IMusicPlayerService;

public class DefaultMPFactory implements IMPFactory {

	@Override
	public MusicPlayer createMusicPlayer(Context context) {
		return new MusicDefaultPlayer(context);
	}

	@Override
	public IMusicPlayerService createMpService(IBinder service) {
		return new DefaultMPService(
				IMediaPlaybackService.Stub.asInterface(service));
	}

}
